namespace GEM.Domain.Repositories;

public interface IDapperRepository<T>
{

    Task<IEnumerable<T>> GetAllAsync();

    Task<T?> GetByIdAsync(Guid id);

    Task<int> CreateAsync(T entity);
    Task<int> UpdateAsync(T entity);
    //真删除
    Task<int> DeleteAsync(Guid id);
    //软删除
    Task<int> IsDeletedAsync(Guid id);
}